#!/bin/bash
case $(cat /etc/issue | cut -f 1 -d ' ') in
'Arch') INSTALL() { sudo pacman -S $@; } ;;
'Ubuntu') INSTALL() { sudo apt install $@ -y --allow-unauthenticated; } ;;
*) echo 'Your distribution has not implementd yet, please modify this command' ;;
esac
if [ $(which curl | wc -l) == 0 ]; then INSTALL curl -y; fi
curl -L https://xiki.com/install_xsh -o ~/install_xsh
bash ~/install_xsh
rm ~/install_xsh
echo "set -x PATH ~/xiki-project/bin/ \$PATH" >~/.config/fish/conf.d/xsh.fish
